package cn.tdeu.spring.config;

import cn.tdeu.spring.bean.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestBeanConfig {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext
                (BeanConfig.class);
        Car bean = context.getBean(Car.class);
        System.out.println(bean);

    }
}
